package com.shengyuan.manage_os.old.ying.erpm.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class Dao_db extends SQLiteOpenHelper {

	public final static String Table_actual_form = "actual_form";
	private final static String DATA_BASE = "JSY.db";
	private final static int DATA_VERSION = 1;
	private final static String CREATE_TABLE = "CREATE TABLE "
			+ Table_actual_form
			+ " (id INTEGER PRIMARY KEY AUTOINCREMENT, form_type VARCHAR, json VARCHAR, json VARCHAR, "
			+ "user VARCHAR, finished INTEGER, sended INTEGER, printed INTEGER)";

	public Dao_db(Context context) {
		super(context, DATA_BASE, null, DATA_VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_TABLE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
